<%--
  Created by IntelliJ IDEA.
  User: 86138
  Date: 2024/6/5
  Time: 下午7:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>餐厅管理系统登录解密</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <%--<link href="back.css" rel="stylesheet" type="text/css" />--%>

    <!-- 引入 layui.css -->
    <link href="//unpkg.com/layui@2.9.10/dist/css/layui.css" rel="stylesheet">
    <!-- 引入 layui.js -->
    <script src="//unpkg.com/layui@2.9.10/dist/layui.js"></script>

</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default" role="navigation">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button> <a class="navbar-brand" href="#">管理网站</a>
                </div>
                <%String message=(String) request.getSession().getAttribute("message");%>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <form class="navbar-form navbar-left" role="search" method="post" action="${pageContext.request.contextPath}/ReportFormServlet?method=se">

                                <div class="layui-inline">
                                    <div class="layui-input-inline">
                                        <input type="text" name="start" class="layui-input" id="test1" placeholder="开始时间">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <div class="layui-input-inline">
                                        <input type="text" name="end" class="layui-input" id="test2" placeholder="截止时间">
                                    </div>
                                </div>

                                <button type="submit" class="btn btn-default">查询</button>
                                <button type="button" class="btn btn-default"><a href="./ReportFormServlet?method=salesAll">总销售额</a></button>
                                <button type="button" class="btn btn-default"><a href="./ReportFormServlet?method=popular">最受欢迎菜品</a></button>
                                <button type="button" class="btn btn-default"><a href="CusManage.jsp">顾客详情</a></button>

                        </form>
                    </ul>
                </div>
                <label> ${message} </label>
                <%request.getSession().removeAttribute("message");%>
            </nav>

        </div>
    </div>
</div>
<script>
layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#test1' //指定元素
        });
        laydate.render({
            elem: '#test2' //指定元素
        });
    });
</script>
</body>
</html>
